import Vue from 'vue'
import App from './App'
// 引入插件
import {request,base_api} from '@/api/request/index.js'
// import cartmodel from '@/common/cart/cart.js'
import weixinupdate from '@/util/weixin/mp-weixin/update.js'
import ShareSdk from '@/util/weixin/h5/m.1.1.js'
import checkweixin from '@/util/weixin/h5/checkweixin.js'
import checkLoginState from '@/api/login/login.js'
import tempaddress from '@/store/address.js'
import currentlocation from '@/util/pagepath.js'
Vue.prototype.$tempaddress = tempaddress

Vue.prototype.$request = request //请求接口
Vue.prototype.$ShareSdk=ShareSdk //分享接口
Vue.prototype.$checkLoginState = checkLoginState //检查登录状态
Vue.prototype.$currentlocation = currentlocation
//设置页面标题
Vue.prototype.$setTitle = function(title){
	// #ifdef H5
	document.title=title||'嗨焙鲜生'
	// #endif
	// #ifdef MP-WEIXIN
	uni.setNavigationBarTitle({
		title:title||'嗨焙鲜生'
	})
	// #endif
}
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
